import Taro, { Component } from '@tarojs/taro'
import { View,Image} from '@tarojs/components'
import { AtButton } from 'taro-ui'
import './step.css'
import app from '../../main';

export default class Step extends Component {

    config = {
        navigationBarTitleText: '如何拍摄眼睛',
        navigationBarBackgroundColor: "#000000",
        navigationBarTextStyle: "white",
    }

    constructor () {
        super(...arguments);
        this.state = {
            step:'https://experts.bayou-tech.cn/img/imgs/step.png',
        }
    } 

    //跳转到拍视频
    gotoEyes(){
        if(this.$router.params.id == '10'){
            app.redirectTo('../eye/eye?id=' + '10')
        }else if(this.$router.params.id == '20'){
            app.redirectTo('../eye/eye?id=' + '20')
        }else{
            app.redirectTo('../eye/eye')
        }
    }

    render () {
        return (
            <View className='image-text'> 
                <View className='step'>
                {/* <Image className='img' src={this.state.step}/> */}
                </View>
            <View>
                <AtButton className='btn' onClick={this.gotoEyes.bind(this)}>开始</AtButton>
                </View>
        </View>   
        )
    }
}